From 0b0eed5cba000c5a98ba7e77976a4e4a81167f2d Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sun, 18 Mar 2007 03:44:32 +0000 Subject: [PATCH] Fix for 'shareddescriptionfollows' message in some non-standard languages (noticed on simple); use wfEmptyMsg() check --- includes/ImagePage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/ImagePage.php b/includes/ImagePage.php index 3ddf192017..5b12ed9909 100644 --- a/includes/ImagePage.php +++ b/includes/ImagePage.php @@ -64,7 +64,7 @@ class ImagePage extends Article { # Show shared description, if needed if ( $this->mExtraDescription ) { $fol = wfMsg( 'shareddescriptionfollows' ); - if( $fol != '-' ) { + if( $fol != '-' && !wfEmptyMsg( 'shareddescriptionfollows', $fol ) ) { $wgOut->addWikiText( $fol ); } $wgOut->addHTML( '
' . $this->mExtraDescription . '
' ); -- 2.20.1